package TWO;
class Cylinder extends AbstractT{
	private double r;
	private double h;
	public Cylinder(double r,double h){
		this.r=r;
		this.h=h;
	}
	public double getS(){
		return((2*3.14*r*h)+(3.14*r*r*2));
	}
	public double getV(){
		return(3.14*r*r*h);
	}
}